package com.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon_belong")
@ApiModel(value="CouponBelong对象", description="")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class CouponBelong implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券归属表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "优惠券id")
    @TableField("coupon_id")
    private Integer couponId;

    @ApiModelProperty(value = "状态:0未使用1已失效2已使用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "领取时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "使用时间")
    @TableField(value = "user_time")
    private Date userTime;

    @ApiModelProperty(value = "使用订单号")
    @TableField(value = "order_id")
    private String orderId;

}
